//
//  CustomTabBar.h
//  CardMoveGame
//
//  Created by peac on 2025/11/5.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol CustomTabBarDelegate <NSObject>
- (void)tabBarDidSelectItemAtIndex:(NSInteger)index;
@end

@interface CustomTabBar : UIView
@property (nonatomic, weak) id<CustomTabBarDelegate> delegate;
@property (nonatomic, assign) NSInteger selectedIndex;

- (void)setupTabBarItemsWithTitles:(NSArray *)titles images:(NSArray *)images selectedImages:(NSArray *)selectedImages;
@end

NS_ASSUME_NONNULL_END
